FROM jre17
MAINTAINER LongYi <smile_jt@qq.com>
ENV APP_VERSION 0.0.1-SNAPSHOT-opt
RUN mkdir /app
COPY MyHairSalonServer-$APP_VERSION.jar /app/app.jar
ENTRYPOINT ["java", "-Xmx256m", "-Xms64m", "-Djava.security.egd=file:/dev/./urandom", "-Duser.timezone=GMT+08", "-jar", "/app/app.jar", "--ACTIVE=pro"]
EXPOSE 2444